﻿@{
    ViewBag.Title = AuditResources.UI.PageTitle;
    Layout = "~/Views/Shared/SubjectAdmin/_SubjectAdminLayout.cshtml";
    var classdatelist = (List<AuditWeb.Models.PWCountyClassDate>)ViewBag.ClassDateList;
}

<h2>@ViewBag.SubjectName<text>首页</text></h2>

<h3>参赛档案情况：<strong>@(string.Format("{0:0%}", (decimal)ViewBag.ArchivesCount / (decimal)ViewBag.CandidateQuotaCount))</strong> (<strong>@ViewBag.ArchivesCount</strong>/<strong>@ViewBag.CandidateQuotaCount</strong>) </h3>
<h3>评委评分情况：<strong>@(string.Format("{0:0%}", (decimal)ViewBag.ScoreCount / (decimal)ViewBag.CandidateQuotaCount))</strong> (<strong>@ViewBag.ScoreCount</strong>/<strong>@ViewBag.CandidateQuotaCount</strong>)  </h3>

<br />

<fieldset>
<legend>听课日程表</legend>
@{
    var grid = new WebGrid(source: ViewBag.ClassDateList,canSort:false);
}
@grid.GetHtml(
    columns: grid.Columns(
            grid.Column("CountyName", AuditResources.Archive.CountyCode),
            grid.Column("ClassDate", AuditResources.Archive.ClassDate, format:@<text>@string.Format("{0:d}", item.ClassDate)</text>)
        ))
</fieldset>